<div class="problemindexholder" problemindex="C">
 <div class="ttypography">
  <div class="problem-statement">
   <div class="header">
    <div class="title">
     C. Really Big Numbers
    </div>
    <div class="time-limit">
     <div class="property-title">
      time limit per test
     </div>
     1 second
    </div>
    <div class="memory-limit">
     <div class="property-title">
      memory limit per test
     </div>
     256 megabytes
    </div>
    <div class="input-file">
     <div class="property-title">
      input
     </div>
     standard input
    </div>
    <div class="output-file">
     <div class="property-title">
      output
     </div>
     standard output
    </div>
   </div>
   <div>
    <p>
     Ivan likes to learn different things about numbers, but he is especially interested in
     <span class="tex-font-style-it">
      really big
     </span>
     numbers. Ivan thinks that a positive integer number
     <span class="tex-span">
      <i>
       x
      </i>
     </span>
     is
     <span class="tex-font-style-it">
      really big
     </span>
     if the difference between
     <span class="tex-span">
      <i>
       x
      </i>
     </span>
     and the sum of its digits (in decimal representation) is not less than
     <span class="tex-span">
      <i>
       s
      </i>
     </span>
     . To prove that these numbers may have different special properties, he wants to know how rare (or not rare) they are — in fact, he needs to calculate the quantity of
     <span class="tex-font-style-it">
      really big
     </span>
     numbers that are not greater than
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     .
    </p>
    <p>
     Ivan tried to do the calculations himself, but soon realized that it's too difficult for him. So he asked you to help him in calculations.
    </p>
   </div>
   <div class="input-specification">
    <div class="section-title">
     Input
    </div>
    <p>
     The first (and the only) line contains two integers
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     and
     <span class="tex-span">
      <i>
       s
      </i>
     </span>
     (
     <span class="tex-span">
      1 ≤
      <i>
       n
      </i>
      ,
      <i>
       s
      </i>
      ≤ 10
      <sup class="upper-index">
       18
      </sup>
     </span>
     ).
    </p>
   </div>
   <div class="output-specification">
    <div class="section-title">
     Output
    </div>
    <p>
     Print one integer — the quantity of
     <span class="tex-font-style-it">
      really big
     </span>
     numbers that are not greater than
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     .
    </p>
   </div>
   <div class="sample-tests">
    <div class="section-title">
     Examples
    </div>
    <div class="sample-test">
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>12 1<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>3<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>25 20<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>0<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>10 9<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>1<br/></pre>
     </div>
    </div>
   </div>
   <div class="note">
    <div class="section-title">
     Note
    </div>
    <p>
     In the first example numbers
     <span class="tex-span">
      10
     </span>
     ,
     <span class="tex-span">
      11
     </span>
     and
     <span class="tex-span">
      12
     </span>
     are
     <span class="tex-font-style-it">
      really big
     </span>
     .
    </p>
    <p>
     In the second example there are no
     <span class="tex-font-style-it">
      really big
     </span>
     numbers that are not greater than
     <span class="tex-span">
      25
     </span>
     (in fact, the first
     <span class="tex-font-style-it">
      really big
     </span>
     number is
     <span class="tex-span">
      30
     </span>
     :
     <span class="tex-span">
      30 - 3 ≥ 20
     </span>
     ).
    </p>
    <p>
     In the third example
     <span class="tex-span">
      10
     </span>
     is the only
     <span class="tex-font-style-it">
      really big
     </span>
     number (
     <span class="tex-span">
      10 - 1 ≥ 9
     </span>
     ).
    </p>
   </div>
  </div>
  <p>
  </p>
 </div>
</div>
